import axios from "@/config/axios";

export function list(params = {}) {
    return axios.get({
        url: "/api/back/user",
        params
    })
}

export function doDelete(ids) {
    return axios.delete({
        url: "/api/back/user",
        data: ids
    });
}

export function doInsert(data) {
    return axios.post({
        url: "/api/back/user",
        data
    })
}

export function doUpdate(data) {
    return axios.put({
        url: "/api/back/user",
        data
    });
}


export function doLogin(data){
    return axios.post({
        url:"/api/back/user/dologin",
        data
    })
}


export function changePwd(data) {
    return axios.put({
        url: "/api/back/user/changepwd",
        data
    });
}


export function changeStatus(data){
    return axios.put({
        url:"/api/back/user/changestatus",
        data
    })
}

export function listUserLog(params= {}){
    return axios.get({
        url:"/api/back/user/listlog",
        params
    });
}